package at.fhooe.im440.pandora.hud;

import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;

import at.fhooe.im440.pandora.core.Core;

public class HUDManager {	

	private List<HUD> HUDsn;
	
	public HUDManager(Core core){
		this.HUDsn = new ArrayList<HUD>();
	}
	
	public void addHUD(HUD h) {
		HUDsn.add(h);
	}
	
	public void removeHUD(HUD h) {
		HUDsn.remove(h);
	}

	public void updateAllHUDS() {
		for(HUD h : HUDsn)
		{
			h.update();
		}		
	}

	public void renderAllHUDS(Graphics2D g) {
		for(HUD h : HUDsn)
		{
			h.render(g);
		}
		
	}

}
